import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:travel/routes/index.dart';
import 'package:travel/screen/flutter_screenutil.dart';
import 'package:travel/ui/draw_under_line.dart';
import 'package:travel/utils/colors.dart';
import 'package:travel/utils/styles.dart';
import 'package:travel/utils/tools.dart';

class MessageController extends GetxController {

}

class MessagePage extends GetView<MessageController> {
  const MessagePage({super.key});

  @override
  Widget build(BuildContext context) {
    return GetBuilder(
      builder: (_) {
        return Scaffold(
          appBar: AppBar(
            automaticallyImplyLeading: false,
            title: Text.rich(TextSpan(
                text: '消息 ',
                style: StylesUtils.customTextStyle(color: ColorsUtils.color0000, fontSize: 18.sp),
                children: [
                  WidgetSpan(
                      child: ToolsUtils.assetImageSvg('u2429.svg', width: 16.w, height: 17.h),
                      alignment: PlaceholderAlignment.middle)
                ])),
            actions: [
              IconButton(
                  onPressed: () {},
                  icon: ToolsUtils.assetImageSvg('u2428.svg', width: 16.w, height: 16.h))
            ],
            systemOverlayStyle: SystemUiOverlayStyle.dark,
          ),
          body: SingleChildScrollView(
            padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 15.w),
            child: Column(
              children: [
                Container(
                  padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 15.w),
                  decoration:
                      BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.w)),
                  child: ListBody(
                    children: [
                      InkWell(
                        onTap: () {
                          Get.toNamed(RoutePath.messageOrder);
                        },
                        child: Container(
                          padding: EdgeInsets.only(bottom: 15.h),
                          child: Row(
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              Align(
                                alignment: Alignment.topLeft,
                                child: Stack(
                                  clipBehavior: Clip.none,
                                  children: [
                                    SizedBox(
                                      width: 35.w,
                                      height: 35.h,
                                      child: ToolsUtils.assetImageSvg('u2423.svg',
                                          width: 35.w, height: 35.h),
                                    ),
                                    Positioned(
                                        width: 12.w,
                                        height: 12.w,
                                        top: 0,
                                        right: -2,
                                        child: CustomPaint(
                                          foregroundPainter: _MyCustomPainter(),
                                        ))
                                  ],
                                ),
                              ),
                              Expanded(
                                  child: Container(
                                margin: EdgeInsets.only(left: 20.w),
                                child: DrawUnderLine(
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text(
                                            '订单消息',
                                            style: StylesUtils.customTextStyle(
                                                fontSize: 16.sp, color: ColorsUtils.color0000),
                                          ),
                                          Text(
                                            '3分钟前',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color9999, fontSize: 12.sp),
                                          )
                                        ],
                                      ),
                                      Container(
                                        margin: EdgeInsets.only(top: 8.h),
                                        alignment: Alignment.centerLeft,
                                        padding: EdgeInsets.only(bottom: 15.h),
                                        child: Text(
                                          '你的订单已完结',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color6666, fontSize: 13.sp),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                              ))
                            ],
                          ),
                        ),
                      ),
                      InkWell(
                        onTap: () {
                          Get.toNamed(RoutePath.messageInteract);
                        },
                        child: Container(
                          padding: EdgeInsets.only(bottom: 15.h),
                          child: Row(
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              Align(
                                alignment: Alignment.topLeft,
                                child: Stack(
                                  clipBehavior: Clip.none,
                                  children: [
                                    SizedBox(
                                      width: 35.w,
                                      height: 35.h,
                                      child: ToolsUtils.assetImageSvg('u2415.svg',
                                          width: 35.w, height: 35.h),
                                    ),
                                    Positioned(
                                        width: 12.w,
                                        height: 12.w,
                                        top: 0,
                                        right: -2,
                                        child: CustomPaint(
                                          foregroundPainter: _MyCustomPainter(),
                                        ))
                                  ],
                                ),
                              ),
                              Expanded(
                                  child: Container(
                                margin: EdgeInsets.only(left: 20.w),
                                child: DrawUnderLine(
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text(
                                            '互动消息',
                                            style: StylesUtils.customTextStyle(
                                                fontSize: 16.sp, color: ColorsUtils.color0000),
                                          ),
                                          Text(
                                            '5分钟前',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color9999, fontSize: 12.sp),
                                          )
                                        ],
                                      ),
                                      Container(
                                        margin: EdgeInsets.only(top: 8.h),
                                        alignment: Alignment.centerLeft,
                                        padding: EdgeInsets.only(bottom: 15.h),
                                        child: Text(
                                          '@用户1008600评论了你的内容',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color6666, fontSize: 13.sp),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                              ))
                            ],
                          ),
                        ),
                      ),
                      InkWell(
                        onTap: () {
                          Get.toNamed(RoutePath.messageSystem);
                        },
                        child: Container(
                          padding: EdgeInsets.only(bottom: 15.h),
                          child: Row(
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              Align(
                                alignment: Alignment.topLeft,
                                child: Stack(
                                  clipBehavior: Clip.none,
                                  children: [
                                    SizedBox(
                                      width: 35.w,
                                      height: 35.h,
                                      child: ToolsUtils.assetImageSvg('u2394.svg',
                                          width: 35.w, height: 35.h),
                                    ),
                                    Positioned(
                                        width: 12.w,
                                        height: 12.w,
                                        top: 0,
                                        right: -2,
                                        child: CustomPaint(
                                          foregroundPainter: _MyCustomPainter(),
                                        ))
                                  ],
                                ),
                              ),
                              Expanded(
                                  child: Container(
                                margin: EdgeInsets.only(left: 20.w),
                                child: DrawUnderLine(
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text.rich(TextSpan(
                                              text: '系统消息 ',
                                              style: StylesUtils.customTextStyle(
                                                  fontSize: 16.sp, color: ColorsUtils.color0000),
                                              children: [
                                                WidgetSpan(
                                                    child: Container(
                                                      constraints: BoxConstraints.expand(
                                                          width: 32.w, height: 18.h),
                                                      decoration: BoxDecoration(
                                                          color: ColorsUtils.rgba(235, 246, 255, 1),
                                                          borderRadius: BorderRadius.circular(3.w)),
                                                      alignment: Alignment.center,
                                                      child: Text(
                                                        '官方',
                                                        style: StylesUtils.customTextStyle(
                                                            fontSize: 12.sp,
                                                            color: ColorsUtils.color3478),
                                                      ),
                                                    ),
                                                    alignment: PlaceholderAlignment.middle)
                                              ])),
                                          Text(
                                            '10小时前',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color9999, fontSize: 12.sp),
                                          )
                                        ],
                                      ),
                                      Container(
                                        margin: EdgeInsets.only(top: 8.h),
                                        alignment: Alignment.centerLeft,
                                        padding: EdgeInsets.only(bottom: 15.h),
                                        child: Text(
                                          '你提交的个人信息审核通过',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color6666, fontSize: 13.sp),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                              ))
                            ],
                          ),
                        ),
                      ),
                      InkWell(
                        onTap: () {
                          Get.toNamed(RoutePath.messageLetter, arguments: {'nickname': '果汁分你一半'});
                        },
                        child: Container(
                          padding: EdgeInsets.only(bottom: 15.h),
                          child: Row(
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              Align(
                                alignment: Alignment.topLeft,
                                child: Stack(
                                  clipBehavior: Clip.none,
                                  children: [
                                    CircleAvatar(
                                      radius: 17.5.w,
                                      backgroundImage: const NetworkImage(
                                          'https://img1.baidu.com/it/u=2783802060,4227402897&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'),
                                    ),
                                    Positioned(
                                        width: 12.w,
                                        height: 12.w,
                                        top: 0,
                                        right: -2,
                                        child: CustomPaint(
                                          foregroundPainter: _MyCustomPainter(),
                                        ))
                                  ],
                                ),
                              ),
                              Expanded(
                                  child: Container(
                                margin: EdgeInsets.only(left: 20.w),
                                child: DrawUnderLine(
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text(
                                            '果汁分你一半',
                                            style: StylesUtils.customTextStyle(
                                                fontSize: 16.sp, color: ColorsUtils.color0000),
                                          ),
                                          Text(
                                            '2天前',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color9999, fontSize: 12.sp),
                                          )
                                        ],
                                      ),
                                      Container(
                                        margin: EdgeInsets.only(top: 8.h),
                                        alignment: Alignment.centerLeft,
                                        padding: EdgeInsets.only(bottom: 15.h),
                                        child: Text(
                                          '[游记消息]',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color6666, fontSize: 13.sp),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                              ))
                            ],
                          ),
                        ),
                      ),
                      InkWell(
                          onTap: () {
                            Get.toNamed(RoutePath.messageLetter, arguments: {'nickname': '飞来飞去'});
                          },
                          child: Container(
                            padding: EdgeInsets.only(bottom: 15.h),
                            child: Row(
                              crossAxisAlignment: CrossAxisAlignment.start,
                              children: [
                                Align(
                                  alignment: Alignment.topLeft,
                                  child: Stack(
                                    clipBehavior: Clip.none,
                                    children: [
                                      CircleAvatar(
                                        radius: 17.5.w,
                                        backgroundImage: const NetworkImage(
                                            'https://img2.baidu.com/it/u=3629629522,2105592203&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'),
                                      ),
                                      Positioned(
                                          width: 12.w,
                                          height: 12.w,
                                          top: 0,
                                          right: -2,
                                          child: CustomPaint(
                                            foregroundPainter: _MyCustomPainter(),
                                          ))
                                    ],
                                  ),
                                ),
                                Expanded(
                                    child: Container(
                                  margin: EdgeInsets.only(left: 20.w),
                                  child: DrawUnderLine(
                                    child: Column(
                                      children: [
                                        Row(
                                          mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                          children: [
                                            Text(
                                              '飞来飞去',
                                              style: StylesUtils.customTextStyle(
                                                  fontSize: 16.sp, color: ColorsUtils.color0000),
                                            ),
                                            Text(
                                              '1周期',
                                              style: StylesUtils.customTextStyle(
                                                  color: ColorsUtils.color9999, fontSize: 12.sp),
                                            )
                                          ],
                                        ),
                                        Container(
                                          margin: EdgeInsets.only(top: 8.h),
                                          alignment: Alignment.centerLeft,
                                          padding: EdgeInsets.only(bottom: 15.h),
                                          child: Text(
                                            '老炮来北京玩啊~',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color6666, fontSize: 13.sp),
                                          ),
                                        )
                                      ],
                                    ),
                                  ),
                                ))
                              ],
                            ),
                          ))
                    ],
                  ),
                )
              ],
            ),
          ),
        );
      },
      init: Get.put(MessageController()),
    );
  }
}

class _MyCustomPainter extends CustomPainter {
  @override
  void paint(Canvas canvas, Size size) {
    Paint paint = Paint()
      ..style = PaintingStyle.fill
      ..color = Colors.white;
    Offset c = Offset(size.width / 2, size.height / 2);
    canvas.drawCircle(c, 6.w, paint);

    paint.color = ColorsUtils.parseColorFromHexString(ColorsUtils.colorFf00);
    canvas.drawCircle(c, 4.w, paint);
  }

  @override
  bool shouldRepaint(covariant CustomPainter oldDelegate) {
    return this != oldDelegate;
  }
}

class MessageView extends StatefulWidget {
  const MessageView({super.key});

  @override
  State<MessageView> createState() => _MessageViewState();
}

class _MessageViewState extends State<MessageView> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        automaticallyImplyLeading: false,
        title: Text.rich(TextSpan(
            text: '消息 ',
            style: StylesUtils.customTextStyle(color: ColorsUtils.color0000, fontSize: 18.sp),
            children: [
              WidgetSpan(
                  child: ToolsUtils.assetImageSvg('u2429.svg', width: 16.w, height: 17.h),
                  alignment: PlaceholderAlignment.middle)
            ])),
        actions: [
          IconButton(
              onPressed: () {},
              icon: ToolsUtils.assetImageSvg('u2428.svg', width: 16.w, height: 16.h))
        ],
        systemOverlayStyle: SystemUiOverlayStyle.dark,
      ),
      body: SingleChildScrollView(
        padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 15.w),
        child: Column(
          children: [
            Container(
              padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 15.w),
              decoration:
              BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.w)),
              child: ListBody(
                children: [
                  InkWell(
                    onTap: () {
                      Get.toNamed(RoutePath.messageOrder);
                    },
                    child: Container(
                      padding: EdgeInsets.only(bottom: 15.h),
                      child: Row(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Align(
                            alignment: Alignment.topLeft,
                            child: Stack(
                              clipBehavior: Clip.none,
                              children: [
                                SizedBox(
                                  width: 35.w,
                                  height: 35.h,
                                  child: ToolsUtils.assetImageSvg('u2423.svg',
                                      width: 35.w, height: 35.h),
                                ),
                                Positioned(
                                    width: 12.w,
                                    height: 12.w,
                                    top: 0,
                                    right: -2,
                                    child: CustomPaint(
                                      foregroundPainter: _MyCustomPainter(),
                                    ))
                              ],
                            ),
                          ),
                          Expanded(
                              child: Container(
                                margin: EdgeInsets.only(left: 20.w),
                                child: DrawUnderLine(
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text(
                                            '订单消息',
                                            style: StylesUtils.customTextStyle(
                                                fontSize: 16.sp, color: ColorsUtils.color0000),
                                          ),
                                          Text(
                                            '3分钟前',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color9999, fontSize: 12.sp),
                                          )
                                        ],
                                      ),
                                      Container(
                                        margin: EdgeInsets.only(top: 8.h),
                                        alignment: Alignment.centerLeft,
                                        padding: EdgeInsets.only(bottom: 15.h),
                                        child: Text(
                                          '你的订单已完结',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color6666, fontSize: 13.sp),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                              ))
                        ],
                      ),
                    ),
                  ),
                  InkWell(
                    onTap: () {
                      Get.toNamed(RoutePath.messageInteract);
                    },
                    child: Container(
                      padding: EdgeInsets.only(bottom: 15.h),
                      child: Row(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Align(
                            alignment: Alignment.topLeft,
                            child: Stack(
                              clipBehavior: Clip.none,
                              children: [
                                SizedBox(
                                  width: 35.w,
                                  height: 35.h,
                                  child: ToolsUtils.assetImageSvg('u2415.svg',
                                      width: 35.w, height: 35.h),
                                ),
                                Positioned(
                                    width: 12.w,
                                    height: 12.w,
                                    top: 0,
                                    right: -2,
                                    child: CustomPaint(
                                      foregroundPainter: _MyCustomPainter(),
                                    ))
                              ],
                            ),
                          ),
                          Expanded(
                              child: Container(
                                margin: EdgeInsets.only(left: 20.w),
                                child: DrawUnderLine(
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text(
                                            '互动消息',
                                            style: StylesUtils.customTextStyle(
                                                fontSize: 16.sp, color: ColorsUtils.color0000),
                                          ),
                                          Text(
                                            '5分钟前',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color9999, fontSize: 12.sp),
                                          )
                                        ],
                                      ),
                                      Container(
                                        margin: EdgeInsets.only(top: 8.h),
                                        alignment: Alignment.centerLeft,
                                        padding: EdgeInsets.only(bottom: 15.h),
                                        child: Text(
                                          '@用户1008600评论了你的内容',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color6666, fontSize: 13.sp),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                              ))
                        ],
                      ),
                    ),
                  ),
                  InkWell(
                    onTap: () {
                      Get.toNamed(RoutePath.messageSystem);
                    },
                    child: Container(
                      padding: EdgeInsets.only(bottom: 15.h),
                      child: Row(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Align(
                            alignment: Alignment.topLeft,
                            child: Stack(
                              clipBehavior: Clip.none,
                              children: [
                                SizedBox(
                                  width: 35.w,
                                  height: 35.h,
                                  child: ToolsUtils.assetImageSvg('u2394.svg',
                                      width: 35.w, height: 35.h),
                                ),
                                Positioned(
                                    width: 12.w,
                                    height: 12.w,
                                    top: 0,
                                    right: -2,
                                    child: CustomPaint(
                                      foregroundPainter: _MyCustomPainter(),
                                    ))
                              ],
                            ),
                          ),
                          Expanded(
                              child: Container(
                                margin: EdgeInsets.only(left: 20.w),
                                child: DrawUnderLine(
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text.rich(TextSpan(
                                              text: '系统消息 ',
                                              style: StylesUtils.customTextStyle(
                                                  fontSize: 16.sp, color: ColorsUtils.color0000),
                                              children: [
                                                WidgetSpan(
                                                    child: Container(
                                                      constraints: BoxConstraints.expand(
                                                          width: 32.w, height: 18.h),
                                                      decoration: BoxDecoration(
                                                          color: ColorsUtils.rgba(235, 246, 255, 1),
                                                          borderRadius: BorderRadius.circular(3.w)),
                                                      alignment: Alignment.center,
                                                      child: Text(
                                                        '官方',
                                                        style: StylesUtils.customTextStyle(
                                                            fontSize: 12.sp,
                                                            color: ColorsUtils.color3478),
                                                      ),
                                                    ),
                                                    alignment: PlaceholderAlignment.middle)
                                              ])),
                                          Text(
                                            '10小时前',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color9999, fontSize: 12.sp),
                                          )
                                        ],
                                      ),
                                      Container(
                                        margin: EdgeInsets.only(top: 8.h),
                                        alignment: Alignment.centerLeft,
                                        padding: EdgeInsets.only(bottom: 15.h),
                                        child: Text(
                                          '你提交的个人信息审核通过',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color6666, fontSize: 13.sp),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                              ))
                        ],
                      ),
                    ),
                  ),
                  InkWell(
                    onTap: () {
                      Get.toNamed(RoutePath.messageLetter, arguments: {'nickname': '果汁分你一半'});
                    },
                    child: Container(
                      padding: EdgeInsets.only(bottom: 15.h),
                      child: Row(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Align(
                            alignment: Alignment.topLeft,
                            child: Stack(
                              clipBehavior: Clip.none,
                              children: [
                                CircleAvatar(
                                  radius: 17.5.w,
                                  backgroundImage: const NetworkImage(
                                      'https://img1.baidu.com/it/u=2783802060,4227402897&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'),
                                ),
                                Positioned(
                                    width: 12.w,
                                    height: 12.w,
                                    top: 0,
                                    right: -2,
                                    child: CustomPaint(
                                      foregroundPainter: _MyCustomPainter(),
                                    ))
                              ],
                            ),
                          ),
                          Expanded(
                              child: Container(
                                margin: EdgeInsets.only(left: 20.w),
                                child: DrawUnderLine(
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text(
                                            '果汁分你一半',
                                            style: StylesUtils.customTextStyle(
                                                fontSize: 16.sp, color: ColorsUtils.color0000),
                                          ),
                                          Text(
                                            '2天前',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color9999, fontSize: 12.sp),
                                          )
                                        ],
                                      ),
                                      Container(
                                        margin: EdgeInsets.only(top: 8.h),
                                        alignment: Alignment.centerLeft,
                                        padding: EdgeInsets.only(bottom: 15.h),
                                        child: Text(
                                          '[游记消息]',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color6666, fontSize: 13.sp),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                              ))
                        ],
                      ),
                    ),
                  ),
                  InkWell(
                      onTap: () {
                        Get.toNamed(RoutePath.messageLetter, arguments: {'nickname': '飞来飞去'});
                      },
                      child: Container(
                        padding: EdgeInsets.only(bottom: 15.h),
                        child: Row(
                          crossAxisAlignment: CrossAxisAlignment.start,
                          children: [
                            Align(
                              alignment: Alignment.topLeft,
                              child: Stack(
                                clipBehavior: Clip.none,
                                children: [
                                  CircleAvatar(
                                    radius: 17.5.w,
                                    backgroundImage: const NetworkImage(
                                        'https://img2.baidu.com/it/u=3629629522,2105592203&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'),
                                  ),
                                  Positioned(
                                      width: 12.w,
                                      height: 12.w,
                                      top: 0,
                                      right: -2,
                                      child: CustomPaint(
                                        foregroundPainter: _MyCustomPainter(),
                                      ))
                                ],
                              ),
                            ),
                            Expanded(
                                child: Container(
                                  margin: EdgeInsets.only(left: 20.w),
                                  child: DrawUnderLine(
                                    child: Column(
                                      children: [
                                        Row(
                                          mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                          children: [
                                            Text(
                                              '飞来飞去',
                                              style: StylesUtils.customTextStyle(
                                                  fontSize: 16.sp, color: ColorsUtils.color0000),
                                            ),
                                            Text(
                                              '1周期',
                                              style: StylesUtils.customTextStyle(
                                                  color: ColorsUtils.color9999, fontSize: 12.sp),
                                            )
                                          ],
                                        ),
                                        Container(
                                          margin: EdgeInsets.only(top: 8.h),
                                          alignment: Alignment.centerLeft,
                                          padding: EdgeInsets.only(bottom: 15.h),
                                          child: Text(
                                            '老炮来北京玩啊~',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.color6666, fontSize: 13.sp),
                                          ),
                                        )
                                      ],
                                    ),
                                  ),
                                ))
                          ],
                        ),
                      ))
                ],
              ),
            )
          ],
        ),
      ),
    );
  }
}
